/**
* @Depends feature.bizobj.js
*/
ksg.bizobj.bizObjTypes.Category = function(obj){ 
	$.extend(this,obj);
};
 ksg.bizobj.bizObjTypes.Category.prototype = {
	_keyFieldName: "id",
	
	id: null,
	categorySetId: null,
	displayName: "",
	keyword: "",
	openGraphName: "",
	matchCount: 0,
	onlyCatagories: false,
	primaryImage: "",
	showInPublicListings: true,
	properties: ksg.App.bizObjMgr.createList("CategoryProperty"),
	
	name: function() { var self = this;
		var dn = self.getItem("displayName");
		if(Cmn.IsEmpty(dn))
			dn = self.getItem("keyword");
		return dn;
	},
	nameWithCount: function() {
		return self.getItem("name") + "&nbsp;(" + self.getItem("matchCount") + ")";
	},
	
	testMe: function() {return "hello";}
};
